package com.distribute.pojo.Task;

import com.distribute.pojo.enums.TaskType;

import java.util.List;

/**
 * @author Zhen
 * @version 1.0
 * @description: TODO
 * @date 2025/7/4 14:42
 */
public class K8sTaskDefinition extends TaskDefinition{

    private K8sTaskParams taskParams;

    private TaskType taskType = TaskType.K8S;

    public TaskType getTaskType() {
        return taskType;
    }

    public void setTaskType(TaskType taskType) {
        this.taskType = taskType;
    }

    public K8sTaskParams getTaskParams() {
        return taskParams;
    }

    public void setTaskParams(K8sTaskParams taskParams) {
        this.taskParams = taskParams;
    }

    static class K8sTaskParams{

        private List localParams;

        private List resourceList;

        private String namespace;

        private Integer minCpuCores;

        private Integer minMemorySpace;

        public List getLocalParams() {
            return localParams;
        }

        public void setLocalParams(List localParams) {
            this.localParams = localParams;
        }

        public List getResourceList() {
            return resourceList;
        }

        public void setResourceList(List resourceList) {
            this.resourceList = resourceList;
        }

        public String getNamespace() {
            return namespace;
        }

        public void setNamespace(String namespace) {
            this.namespace = namespace;
        }

        public Integer getMinCpuCores() {
            return minCpuCores;
        }

        public void setMinCpuCores(Integer minCpuCores) {
            this.minCpuCores = minCpuCores;
        }

        public Integer getMinMemorySpace() {
            return minMemorySpace;
        }

        public void setMinMemorySpace(Integer minMemorySpace) {
            this.minMemorySpace = minMemorySpace;
        }
    }

}
